import request from '@/utils/request'

export function getNoticeList(data) {
  return request({
    url: '/notice/admin/list',
    method: 'post',
    data
  })
}

export function deleteNotice(params) {
  return request({
    url: '/notice/admin/del',
    method: 'get',
    params
  })
}

export function createNoticeDetail(data) {
  return request({
    url: '/notice/admin/create',
    method: 'post',
    data
  })
}

export function updateNoticeDetail(data) {
  return request({
    url: '/notice/admin/update',
    method: 'post',
    data
  })
}

export function getNoticeDetail(params) {
  return request({
    url: '/notice/admin/getDetail',
    method: 'get',
    params
  })
}

